package com.esd.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.esd.common.pojo.R;
import com.esd.device.entity.EsdLog;
import com.esd.device.entity.dto.AnalysisSearch;
import com.esd.device.entity.dto.EsdLogSearch;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface EsdLogService extends IService<EsdLog> {

    R logSearch(EsdLogSearch deviceLogSearch);

    EsdLog getLatestLogByCreateTime(String stationId);

    void deleteEsdLog();

    List<EsdLog> getEsdLogByTime(Integer type , String status);

    List<EsdLog> getEsdLogByTimeAndLine(Integer type , String status , String line);

    List<EsdLog> getEsdLogByTimeAndChanneType(Integer type , String status , String channelType);


    Map<String, Object> searchData(AnalysisSearch analysisSearch);

    void exportData(AnalysisSearch analysisSearch, HttpServletResponse response) throws IOException;
}
